/*
package org.itboys.mobile.service.mongo.weixin;

import org.apache.commons.collections.map.HashedMap;
import org.itboys.commons.utils.tools.ListUtil;
import org.itboys.mobile.common.SundayCommonConstants;
import org.itboys.mobile.dto.floorMr.SundayFloorDetailDto;
import org.itboys.mobile.dto.floorMr.SundayFloorMrDto;
import org.itboys.mobile.entity.mongo.SundayFloorMr;
import org.itboys.mobile.entity.mongo.SundayFloorMrGroup;
import org.itboys.mongodb.core.MongoDataSource;
import org.itboys.mongodb.service.BaseMongoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

*/
/**
 * @Author：贾琦磊
 * @Date：2018/7/18
 * @Description：
 * 废除--2018年8月3日14:53:36
 *//*

@Service
public class SundayWeiXinFloorMrService extends BaseMongoService<SundayFloorMr>{
    @Resource(name = "mobileDs")
    private MongoDataSource yefuDataSource;
    @Override
    protected MongoDataSource getMongoDataSource() {
        return yefuDataSource;
    }

    @Override
    protected Class<SundayFloorMr> getEntityClass() {
        return SundayFloorMr.class;
    }

    @Autowired
    private SundayWeiXInFloorMrGroupService groupService;


    */
/**
     * 获取楼先生详情
     * @param groupId
     * @return
     *//*

    public SundayFloorDetailDto getDetail(Long groupId){
        SundayFloorDetailDto result=new SundayFloorDetailDto();
        SundayFloorMrGroup group = groupService.getById(groupId);
        result.setTitle(group.getTitle());
        Map<String,Object> param=new HashedMap();
        param.put("isDeleted",SundayCommonConstants.NO);
        param.put("titleId",groupId);
        List<SundayFloorMr> floorMrs = super.list(param);
        if(ListUtil.isNull(floorMrs)){
            return result;
        }
        result.setFloorMrDtos(packageDtos(floorMrs));
        return result;
    }

    */
/**
     * 封装dto
     * @param floorMrs
     * @return
     *//*

    public List<SundayFloorMrDto> packageDtos(List<SundayFloorMr> floorMrs){
        List<SundayFloorMrDto> result=new ArrayList<>();
        for (SundayFloorMr floorMr:floorMrs) {
            SundayFloorMrDto floorMrDto=new SundayFloorMrDto();
            floorMrDto.setQuestion(floorMr.getQuestion());
            floorMrDto.setAnswer(floorMr.getAnswer());
            result.add(floorMrDto);
        }
        return result;
    }

}
*/
